#ifndef __TIMER_H
#define __TIMER_H
#include "sys.h"

#define TIM_PRESCALER	35	//72/(35+1)=2MHZ
#define TIM_PERIOD		(10000-1)//5ms

extern volatile unsigned int system_timer_counter;
extern volatile uint8_t system_timer_flag;

void TIM3_Int_Init(uint16_t arr);
#endif
